package tr.helper.view;

import java.util.Date;
import javafx.scene.image.ImageView;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tr.helper.view.annotation.Alias;
import tr.helper.view.annotation.View;

/**
 * tr-service
 *
 * @author MrYe
 * @date 2022-01-12 16:02
 */
@View
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ServerInfoItem {

    @Alias(value = "编号", width = 10)
    private Long id;
    @Alias(value = "名称", width = 150)
    private String name;
    @Alias(value = "Host", width = 100)
    private String host;
    @Alias(value = "port", width = 40)
    private Integer port;
    @Alias(value = "用户名", width = 50)
    private String username;
    @Alias(value = "密码", width = 50)
    private String password;
    @Alias(value = "本地Jar", br = true, width = 300)
    private String sourceJar;
    @Alias(value = "目标Jar名称", width = 120)
    private String targetJar;
    @Alias(value = "目标根目录", width = 120)
    private String serverAppRoot;
    @Alias(value = "应用端口", width = 40)
    private Integer appPort;
    @Alias(value = "扩展命令", width = 60)
    private String startExt;
    @Alias(value = "类型", width = 40)
    private String type;
    @Alias(value = "状态", gif = true, width = 40)
    private ImageView status;
    @Alias(value = "状态", ignore = true)
    private String stat;
    @Alias(value = "用量", width = 100, fontSize = 10, br = true)
    private String used;
    @Alias("创建时间")
    private Date created;

}
